package com.peanut.bosskg.entity.lijianjin;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 代金券发放接口VO
 *
 * @author ：zhangwb
 * @date ：Created in 2025/4/7 11:06
 */
@Data
public class CouponSendRequestVO implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * 客户订单号
     */
    @NotBlank(message = "客户订单号不能为空")
    private String merOrderId;

    /**
     * 服务商ID
     */
    @NotNull(message = "服务商ID不能为空")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long providerId;

    /**
     * 优惠券批次号
     */
    @NotBlank(message = "优惠券批次号不能为空")
    private String stockId;

    /**
     * 应用id
     */
    @NotBlank(message = "应用id不能为空")
    private String appId;

    /**
     * openId
     */
    @NotBlank(message = "openId不能为空")
    private String openId;
}
